import Vue from 'vue'
import './style/common.scss';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './containers/App.vue'
import VueRouter from 'vue-router'
import {HEMPConfig} from "./config";
import {GlobalDefinitions} from './GlobalDefinitions';
import store from './store'
import {routes} from './routes'
Vue.use(VueRouter);
Vue.use(ElementUI);
//全局变量
let Config = new HEMPConfig;
(window as GlobalDefinitions).basePath = Config.basePath;
(window as GlobalDefinitions).homeworkBasePath = Config.homeworkBasePath;
(window as GlobalDefinitions).hempConfig = Config.hempConfig;
(window as GlobalDefinitions).BKBasePath = Config.BKBasePath;
(window as GlobalDefinitions).authorization="Bearer 44bfe8e1-2525-38ed-9ba5-bb58f3bf07aa";
const router = new VueRouter((routes as any));
let app = new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    // components: { App }
    render: c => c(App),
});